package zhh.tangbao.commodity.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import zhh.tangbao.commodity.entity.CommodityMachineHistory;
import zhh.tangbao.wechat.dto.WeChatMachineQueryDto;
import zhh.tangbao.wechat.vo.WeChatCommodityMachineHistoryVo;

import java.util.List;

/**
 * <p>
 *     描述
 * </p>
 * @author 粥灰灰
 * <p>2023/3/12</p>
 */

@Repository
@Mapper
public interface CommodityMachineHistoryDao extends BaseMapper<CommodityMachineHistory> {

    List<WeChatCommodityMachineHistoryVo> page(WeChatMachineQueryDto dto);

    Integer count(WeChatMachineQueryDto dto);

    Integer upsert(CommodityMachineHistory history);
}
